home *** CD-ROM | disk | FTP | other *** search
/ Trusted Irix /B 4.0.4 / Trusted-Irix B-4.0.1.iso / dist / eoe1.idb / etc / brc.z / brc
Text File  |  1992-04-03  |  584b  |  26 lines

  1. #! /bin/sh
  2. #Tag 0x00000f00
  3. #ident "$Revision: 1.18 $"
  4. #
  5. # This script is responsible for initializing the mounted filesystem table
  6. # kept in /etc/mtab.  It also creates /etc/fstab if none exists.
  7. #
  8.  
  9. if [ "`/etc/nvram diskless 2> /dev/null`" -eq 1 ] ; then
  10.     > /etc/mtab
  11.     /etc/mount -f /
  12.     if [ -d /share ]; then
  13.         /etc/mount -f /share
  14.     fi
  15.     if [ -d /swap ]; then
  16.     /etc/mount -f /swap
  17.     fi
  18. else
  19.     rootdev=/dev/root
  20.     usrdev=/dev/usr
  21.     if [ ! -f /etc/fstab ] ; then
  22.     echo "$rootdev /\n$usrdev /usr" | setmnt -f /etc/fstab
  23.     fi
  24.     echo "$rootdev /" | setmnt
  25. fi
  26.